const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  /*
    相当于写的是
      token (state) {
        return state.user.token
      }
  */
  userInfo: state => state.user.userInfo,
  // 加了个计算属性用来快速访问permission里的路由表
  routes: state => state.permission.routes
}
export default getters
